const fs = require("node:fs");
const { version } = require("../package.json");
const path = require("node:path");

fs.writeFileSync(
  path.join(__dirname, "../src/injectInfo.ts"),
  `
/**
 * 版本号
 */
export const version = "${version}";
`,
);
